﻿using System.Web.Mvc;
namespace DevAwesome.WebDataBridge.MVC {

    public class WebDataBridgeAreaRegistration : AreaRegistration {

        public override string AreaName {
            get {
                return "WebDataBridge";
            }
        }

        public override void RegisterArea( AreaRegistrationContext context ) {
            context.MapRoute( "WebDataBridge_Cache", "Data/Cache/{bridgeId}/{endPoint}", new { controller = "WebDataBridge", action = "Data" }, new[ ] { "DevAwesome.WebDataBridge.MVC" } );
            context.MapRoute( "WebDataBridge_Fresh", "Data/Fresh/{bridgeId}/{endPoint}/", new { controller = "WebDataBridge", action = "Refresh" }, new[ ] { "DevAwesome.WebDataBridge.MVC" } );
            context.MapRoute( "WebDataBridge_Lazy", "Data/{bridgeId}/{endPoint}", new { controller = "WebDataBridge", action = "Data" }, new[ ] { "DevAwesome.WebDataBridge.MVC" } );
       
        }

    }
}
